# -*- coding: utf-8 -*-
"""
    project : 52周存钱项目联系
    created by : F
    version : 3.0
    date : 11/09/2018
"""


def save_money_in_n_weeks(money_per_week,increase_money,total_week):

    total_money = 0

    for i in range(total_week):
        total_money += money_per_week
        print("第{}周, 存入{}元，账户累计{}元".format(i + 1, money_per_week, total_money))

        money_per_week += increase_money


def main():
    """
        主函数
    """

    money_per_week = float(input("请输入每周存入金额:"))         # 每周存入金额
    increase_money = float(input("每周增加存款:"))          # 每周增加存款
    total_week = int(input("存款期数:"))         # 存款期数

    save_money_in_n_weeks(money_per_week,increase_money,total_week)


if __name__ == '__main__':
    main()
